//
//  types.h
//  GameLaLaWork
//
//  Created by gamelala on 14-8-6.
//  Copyright (c) 2014年 gamelala. All rights reserved.
//

#ifndef __TYPES_H__
#define __TYPES_H__
#ifdef __cplusplus
extern "C" {
#endif
    
    typedef  unsigned  long		uint64;      /* Unsigned 64 bit value */
    typedef  long				int64;      /* signed 64 bit value */
    typedef  unsigned short		uint16;      //有符号16bit整型
    typedef  unsigned int		uint32;      //无符号32bit整型
    typedef  long int			int32;      //有符号32bit整型
    typedef  unsigned char      uint8;        //无符号8bit整型
    typedef  signed char		int8;        //有符号8bit整型
    typedef  signed short		int16;       //有符号16bit整型
    
    typedef  uint32				DWORD;
    typedef  uint16				WORD;
    typedef  uint8				BYTE;
    
    //typedef  int8               BOOL;
    typedef  uint32				uint32_t;
    
#ifndef NULL
#define NULL (void*)0
#endif
    
#ifndef TRUE
#define TRUE 1
#endif
    
#ifndef FALSE
#define FALSE 0
#endif
    
#ifndef MAX
#define MAX(x, y)           (((x) > (y))?(x):(y))
#endif
    
#ifndef MIN
#define MIN(x, y)           (((x) < (y))?(x):(y))
#endif
    
#ifndef ABS
#define ABS(x)              (((x)<0) ? -(x) : (x))
#endif
    
#ifdef __cplusplus
}
#endif
#endif

